package com.mingtu.guards.adapter;

import androidx.annotation.NonNull;

import com.blankj.utilcode.util.StringUtils;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.mingtu.guards.R;
import com.mingtu.guards.bean.ContactsPeopleBean;

public class ContactsPeopleAdapter extends BaseQuickAdapter<ContactsPeopleBean.ListBean, BaseViewHolder> {

    public ContactsPeopleAdapter() {
        super(R.layout.item_contacts_people);
    }

    @Override
    protected void convert(@NonNull BaseViewHolder helper, ContactsPeopleBean.ListBean listBean) {
        String staffName = listBean.getName();
        if (!StringUtils.isEmpty(staffName)) {
            helper.setText(R.id.tv_name, staffName);
        }
        helper.addOnClickListener(R.id.iv_call);
        helper.addOnClickListener(R.id.iv_video);
    }
}
